package com.sunyard.dal.mapper;

import com.sunyard.dal.entity.BoxAlarm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BoxAlarmMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(BoxAlarm record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(BoxAlarm record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    BoxAlarm selectByPrimaryKey(Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(BoxAlarm record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(BoxAlarm record);

    /**
     * 分页查询尾箱预警
     *
     * @param orgIdList [orgIdList]
     * @return List<BoxAlarm>
     **/
    List<BoxAlarm> getBoxAlarmByPage(@Param("orgIdList") List<String> orgIdList);
}